package com.itheima.homework.homework1;

public class Student extends Person{
    private String school; // 所在学校

    public Student() {

    }

    public Student(String name, int age, String birthday, String school) {
        super(name, age, birthday);
        this.school = school;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    @Override
    public String getInfo() {
        return "Person[name=" + getName() + ", age=" + getAge() + ", birthday=" + getBirthday() + ", school=" + getSchool()+ "]";
    }
}

